package com.alog.storage.ui.fragment;

import android.support.v4.widget.SwipeRefreshLayout;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.alog.storage.R;
import com.alog.storage.utils.CommonUtil;

/**
 * 首页 -> 找仓
 */
public class StorageFindFragment extends BaseFragment implements SwipeRefreshLayout.OnRefreshListener, View.OnClickListener {
    private boolean mRefresh;

    @Override
    public View onInitView(LayoutInflater inflater, ViewGroup container) {
        return initView(inflater);
    }

    private View initView(LayoutInflater inflater) {
        View v = inflater.inflate(R.layout.storagefind, null);

        return v;
    }

    private void initView() {
    }

    @Override
    public void setUserVisibleHint(boolean isVisibleToUser) {
        super.setUserVisibleHint(isVisibleToUser);
        if (isVisibleToUser && CommonUtil.isConnect(mContext) && !mRefresh) {
            loadDataStarted();
            onRefresh();
        }
    }

    @Override
    public void onClick(View v) {
    }

    @Override
    public void onRefresh() {
    }

}
